package com.onlyxiahui.common.message.response;

import com.onlyxiahui.common.message.bean.Info;

/**
 * 
 * Date 2018-12-25 10:56:45<br>
 * Description
 * 
 * @author XiaHui<br>
 * @param <H>
 * @param <B>
 * @since 1.0.0
 */
public class ResponseMessage<H, B> {

	private Info info;
	private H head;
	private B body;

	public H getHead() {
		return head;
	}

	public void setHead(H head) {
		this.head = head;
	}

	public B getBody() {
		return body;
	}

	public void setBody(B body) {
		this.body = body;
	}

	public Info getInfo() {
		return info;
	}

	public void setInfo(Info info) {
		this.info = info;
	}

	public boolean isSuccess() {
		return null == info ? false : info.isSuccess();
	}
}
